#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QCompleter>
#include <QStringListModel>
#include <QLineEdit>
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_comboBox_currentIndexChanged(const QString &arg1);
    void editFinished();
private:
    Ui::MainWindow *ui;
    QCompleter* n;
    QStringListModel* model;
    QLineEdit* line;
    QStringList word_list;
};

#endif // MAINWINDOW_H
